# Using wget assumes network connection. Can also copy with USB.
mkdir ~/mdb-binaries && cd ~/mdb-binaries
wget https://github.com/themattman/mongodb-raspberrypi-binaries/releases/download/r7.0.8-rpi-unofficial/mongodb.ce.pi4.r7.0.8.tar.gz
tar xzvf mongodb.ce.pi4.r7.0.8.tar.gz # Decompress tarball

# Prepare MongoDB data & log directories
sudo apt install libssl1.1 -y
sudo mkdir -p /data/db/test_db
sudo chown -R ${USER}:${USER} /data
touch /data/db/test_db/mongod.log

# Run & Configure MongoDB Standalone Local Server
./mongod --dbpath /data/db/test_db --fork --logpath /data/db/test_db/mongod.log --port 27017
# ./mongo --port 27017 # run queries!
